home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 316 / libsrc / lseek.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-10-20  |  311 b   |  18 lines

  1. /* seek to a position in a file */
  2.  
  3. #ifdef DEBUG
  4. extern int stderr;
  5. #endif
  6.  
  7. int lseek(fd, offset, mode)
  8. int fd;
  9. long offset;
  10. int mode; 
  11. {
  12.   int result = trap_1_wlww(0x42, offset, fd, mode);
  13. #ifdef DEBUG
  14.   fprintf(stderr, "lseek(%d, %d, %d)->%d\n", fd, offset, mode);
  15. #endif
  16.   return(result);
  17. }
  18.